<?php

namespace backend\models;

use Yii;

/**
 * This is the model class for table "custom_trade".
 *
 * @property integer $id
 * @property integer $trade_id
 * @property string $service_person
 * @property string $address
 * @property string $message
 * @property string $price_memo
 * @property string $service
 * @property string $user_name
 * @property string $content
 */
class CustomTrade extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'custom_trade';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
           // [['id'], 'required'],
            [['id', 'trade_id'], 'integer'],
            [['address', 'message', 'price_memo', 'content'], 'string'],
            [['service_person', 'user_name'], 'string', 'max' => 40],
            [['service'], 'string', 'max' => 128],
            [['tel'], 'string', 'max' => 15],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'trade_id' => 'Trade ID',
            'service_person' => Yii::t('app', 'Custom Service Person'),
            'address' => Yii::t('app', 'Custom Address'),
      		'tel' => Yii::t('app', 'Custom Tel'),
            'message' => Yii::t('app', 'Custom Message'),
            'price_memo' => Yii::t('app', 'Custom Price Memo'),
            'service' => Yii::t('app', 'Custom Service'),
            'user_name' => Yii::t('app', 'Custom User Name'),
            'content' => Yii::t('app', 'Custom Content'),
        ];
    }
}







